const { createRouter,createWebHashHistory,useRoute } = VueRouter
// 2. 定义路由
const routes = [
    { path: '/', component: Home },
    { path: '/customer', component: Customer },
    { path: '/product', component: Product },
    { path: '/addproduct', component: AddProduct },
    { path: '/aggrid', component: Aggrid },

];


const router = createRouter({
   history:createWebHashHistory(),
    routes,
 });